package com.yaoxun.bored.mapper.sys.authority;

import java.util.List;

import com.yaoxun.bored.model.sys.authority.Authority;
import com.yaoxun.bored.model.sys.authority.RoleConfig;

import tk.mybatis.mapper.common.Mapper;

public interface AuthorityMapper extends Mapper<Authority> {

	List<Authority> selectMenu();
	
	List<Authority> selectAuthByMenuId(Integer menuId);
	
	/**
	 * 删除角色菜单关联和角色权限关联
	 * @param roleId
	 * @return
	 */
	int deleteRoleAuth(Integer roleId);
	
	int insertRoleMenu(RoleConfig config);
	
	int insertRoleAuth(RoleConfig config);

	Integer[] selectRoleMenu(Integer roleId);
	
	Integer[] selectRoleAuth(Integer roleId);
}
